package com.qf.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author zhaojian
 */

@FeignClient(value = "sms-platform-cache")
@RequestMapping("/cache")
public interface CacheFeign {

    @RequestMapping(value = "/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable(value = "key") String key);

    @RequestMapping(value = "/hget/{key}/{field}",method = RequestMethod.POST)
    public Object hget(@PathVariable(value = "key") String key,
                       @PathVariable(value = "field") String field);
}
